<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
use Illuminate\Support\Facades\Auth;
use App\User;
class GoodsAttribute extends Model
{
    use SoftDeletes;
    protected $fillable = ['name', 'rname','number','salled_number','price', 'unit', 'runit'];
    
    public function good()
    {
        return $this->hasOne(Good::class,'id', 'good_id');
    }
    
}
